<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/global.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/page.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/form.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/style.css" />
		<link rel="stylesheet" type="text/css"	href="<%=basePath%>admin/css/dialog.css" />
		<title></title>
	</head>
	<body>
   	<div class="wapper show tableContainer">
   	<h2 class="pagerTitle tabTitle" ><a class="tab tabActive">图片管理</a></h2>
		<div id="inputLabelParent">
		<form name="uploadform" action="uploadpic.action" method="post"  enctype="multipart/form-data">
			<table width="100%" cellpadding="0" cellspacing="0" style="margin-left:100px;">
			  <tr>
			    <td height="60">
			        <!-- 主题关键词：<input type="text" name="keyword" id="keyword" maxlength="50" value="${keyword}"/> -->
　　 			图　片（475*256）：<input type="file" name="pic"/> <p style="color:#ff0000;">${errorinfo}</p></td>
			  </tr>
			  <tr>
			    <td height="35">
			    	<input style="margin-left:80px" type="submit" id="submit" value="　保　存　"/>
			    </td>
			  </tr>
			</table>
		</form>
		<div style="clear:both; height:10px; border-bottom:1px solid #818181; margin-top:20px;"></div>
		<s:iterator value="listPhoto" id="list" status="sta">
			<table width="100%" cellpadding="0" cellspacing="0" style="margin-left:100px;">
			  <tr>
			    <td height="25">序号：<s:property value="#sta.index+1"/>　　<a href="deletePhotonow.action?id=<s:property value="#list[0]"/>">删除</a>　　
			    	<!-- 主题关键词：<s:property value="#list[2]"/> -->
			    </td>
			  </tr>
			  <tr>
			    <td>
			    <img alt="<s:property value="#list[2]"/>" src="<%=basePath%>/upload/indexshow/<s:property value="#list[1]"/>" width="500">
			    </td>
			  </tr>
			</table>

		</s:iterator>
		</div>
		
		
		<div >
		</div>
   	</div>
   
   		<script type="text/javascript" src="<%=basePath%>/admin/js/jquery.js"></script>
		<script type="text/javascript" src="<%=basePath%>/admin/js/jqueryui.js"></script>
		<script type="text/javascript" src="<%=basePath%>/admin/js/simpleDialog.js"></script>
		<script type="text/javascript" src="<%=basePath%>/admin/photo/js/checkForm.js"></script>

   
</html>
